package heap

type MethodDescriptor struct {
	parameterTypes []string
	returnType     string
}

// addParameterType 添加参数类型
func (e *MethodDescriptor) addParameterType(t string) {
	pLen := len(e.parameterTypes)
	if pLen == cap(e.parameterTypes) {
		s := make([]string, pLen, pLen+4)
		copy(s, e.parameterTypes)
		e.parameterTypes = s
	}
	e.parameterTypes = append(e.parameterTypes, t)
}
